<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单登录注册页面</title>
    <link rel="stylesheet" href="../CSS/innovate/one.css">
</head>
<body class="body-style">
<div class="box">
    <h2 class="login-title">Login</h2>
    <form action="login" name="myForm" method="post" th:object="${user}" class="input-box-form">
        <div class="input-box">
            <label class="input-label">账号</label>
            <input type="text" th:field="*{account}" class="input-text"/>
        </div>
        <div class="input-box">
            <label class="input-label">密码</label>
            <input type="password" th:field="*{password}" class="input-password"/>
        </div>
        <div class="btn-box">
            <a href="javascript:void(0)" class="forgot-password-link">忘记密码?</a>
            <div class="btn-div">
                <input type="submit" value="登录" class="submit-btn">
                <input type="reset" value="重置" class="reset-btn">
            </div>
        </div>
        <div class="radio-box">
            <input type="radio" name="role" value="管理员" class="radio-option">管理员
            <input type="radio" name="role" value="普通用户" class="radio-option">普通用户
        </div>
    </form>
</div>
</body>
</html>



    <style>
        /* 整体页面元素样式重置 */
        .page-reset * {
            margin: 0;
            top: 0;
        }

        /* 页面主体样式，利用flex布局实现整体居中 */
        .body-style {
            height: 100vh;
            background: url(../images/background.png) no-repeat;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 以下是其他各类选择器对应的样式，保持不变 */

        /* 登录注册框样式 */
        .box {
            width: 350px;
            height: 350px;
            border-top: 1px solid rgba(255, 255, 255, 0.5);
            border-left: 1px solid rgba(255, 255, 255, 0.5);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            border-right: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(1px);
            background: rgba(50, 50, 50, 0.4);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 6px;
        }

        /* 标题样式 */
        .login-title {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 30px;
        }

        /* 输入框外层容器样式 */
        .input-box {
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            margin-bottom: 10px;
        }

        /* 输入框标签样式 */
        .input-label {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 5px;
        }

        /* 文本输入框样式 */
        .input-text,
        .input-password {
            letter-spacing: 1px;
            font-size: 14px;
            box-sizing: border-box;
            width: 250px;
            height: 35px;
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(50, 50, 50, 0.3);
            outline: none;
            padding: 0 12px;
            color: rgba(255, 255, 255, 0.9);
            transition: 0.2s;
        }

        /* 输入框聚焦效果 */
        .input-text:focus,
        .input-password:focus {
            border: 1px solid rgba(255, 255, 255, 0.8);
        }

        /* 按钮区域样式 */
        .btn-box {
            width: 250px;
            display: flex;
            flex-direction: column;
        }

        /* 忘记密码链接样式 */
        .forgot-password-link {
            outline: none;
            display: block;
            width: 250px;
            text-align: end;
            text-decoration: none;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
        }

        /* 忘记密码链接鼠标悬停样式 */
        .forgot-password-link:hover {
            color: rgba(255, 255, 255, 1);
        }

        /* 按钮所在内层div样式 */
        .btn-div {
            margin-top: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 提交按钮样式 */
        .submit-btn,
        .reset-btn {
            outline: none;
            margin-top: 10px;
            display: block;
            font-size: 14px;
            border-radius: 5px;
            transition: 0.2s;
        }

        /* 提交按钮样式 */
        .submit-btn {
            width: 120px;
            height: 35px;
            color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(00, 96, 96, 0.7);
            background: rgba(00, 96, 96, 0.5);
        }

        /* 重置按钮样式 */
        .reset-btn {
            width: 120px;
            height: 35px;
            margin-left: 10px;
            color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(00, 96, 96, 0.7);
            background: rgba(00, 96, 96, 0.5);
        }

        /* 按钮鼠标悬停样式 */
        .submit-btn:hover,
        .reset-btn:hover {
            border: 1px solid rgba(00, 96, 96);
            background: rgba(00, 96, 96);
        }

        /* 单选框样式 */
        .radio-option {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.8);
            outline: none;
            cursor: pointer;
            margin-right: 4px;
            vertical-align: middle;
            transition: 0.2s;
        }

        /* 单选框选中时的样式 */
        .radio-option:checked {
            background-color: rgba(0, 96, 96, 0.8);
        }

        .radio-box {
            display: flex;
            align-items: center;
        }
    </style>